﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Net;
using System.Text;

namespace StreakyDownloader.Model
{
   public interface IWebClient
   {
      event AsyncCompletedEventHandler DownloadFileCompleted;
      event DownloadProgressChangedEventHandler DownloadProgressChanged;

      byte[] DownloadData(string url);

      void DownloadFileAsync(Uri address, string localFilename);

      void CancelAsync();
   }
}
